package com.wish.wishsystem_management.mapper;

import com.wish.wishsystem_management.entity.SysUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import dto.systemDto.SysUserDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 系统用户 Mapper 接口
 * </p>
 *
 * @author zhaiwj
 * @since 2021-03-22
 */
public interface SysUserMapper extends BaseMapper<SysUser> {

    List<SysUser> selectPageVo(SysUserDto sysUserDto);

    SysUser queryObject(Long userId);


    void deleteBatch(Long[] userIds);


    SysUser getSysUserByMobile(String mobile);

    List<SysUser> queryList(Map<String, Object> map);


    void update(SysUser sysUser);

    void save(SysUser sysUser);

    List<SysUser> queryList2(@Param("deptId") Long deptId, @Param("id") Integer id);

    void updateUser2(SysUser user);

    SysUser getUserById(Long userId);
    void register(SysUser register);

    void update3(SysUser sysUserEntity);

    SysUserDto getBusinessIdByUserId(String username);
}
